<?php 
switch ($data->newscat->znc_patentid)
{
    case 7:
        $url = '/home/news/album_detail/id/'.$data->zne_id;
    break;
    case 6:
        $url = '/home/news/video_detail/id/'.$data->zne_id;
    break;
    default:
        $url = '/home/news/detail/id/'.$data->zne_id;
}
if($data->znc_id == 9){$url = '/home/news/special';}

?>

<div class="news_con">
    <ul>
        <li>
            <h3 class="fs_14"><?php echo CHtml::link($data->zne_title, $url, array('class'=>'c_blue3'));?></h3>
            <p><?php echo $data->zne_desc.CHtml::link('（查看全文）',$url, array('class'=>'c_blue3'));?></p>
            <?php if($data->zne_thumb):?>
                <div class="img t_c"><?php echo Tool::thumb($data->zne_thumb,100,100, $data->zne_short)?></div>
            <?php endif;?>
            <p class="info c_999"><span class="click f_r"><em>点击数：<?php echo ($data->zne_hits)?$data->zne_hits:'0';?>次</em><em>发表时间：<?php echo date('Y-m-d',$data->inputtime);?></em><em>来源：<?php echo ($data->zne_source)?$data->zne_source:'硅家宝';?></em></span><span class="keywords">关键字：
                    <?php   $tag = str_replace(',', ' ', $data->zt_ids);
                            if(!empty($tags)){
							$tags = explode(' ',$tag);
                            for ($i= 0;$i< count($tags); $i++){
                                    $tag = Tag::model()->findByPk($tags[$i]);
									$str = $tag->attributes['zt_title'];
                                    echo CHtml::link($str, array('/home/news/list/','tag'=>$str)).' ';
                                }}?></span></p>
        </li>
    </ul>
</div>


